]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Added contexts to various Unknown strings
authorPiotr Drąg <piotrdrag@gmail.com>
Fri, 1 Jun 2012 12:44:40 +0000 (14:44 +0200)
committerPiotr Drąg <piotrdrag@gmail.com>
Fri, 1 Jun 2012 12:44:40 +0000 (14:44 +0200)
Fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=659968

js/ui/contactDisplay.js
js/ui/notificationDaemon.js
js/ui/status/power.js
src/shell-app.c

index 390bd23eda5f14a24ca1c91c009bdf36d4710a78..6cbc59824fe33280bd6097a3afaab7a51a3c43ef 100644 (file)
@@ -63,7 +63,7 @@ const Contact = new Lang.Class({
                         this.individual.full_name ||
                         this.individual.nickname  ||
                         email                     ||
-                        _("Unknown");
+                        C_("contact", "Unknown");
         let aliasLabel = new St.Label({ text: aliasText,
                                         style_class: 'contact-details-alias' });
         details.add(aliasLabel, { x_fill: true,
index cf89733f865ac68dfc09e6249ef2b07a1baa70b5..a02898a6f8b5ec084402a82f70ff1e8682a0478f 100644 (file)
@@ -483,7 +483,7 @@ const NotificationDaemon = new Lang.Class({
     },
 
     _onTrayIconAdded: function(o, icon) {
-        let source = this._getSource(icon.title || icon.wm_class || _("Unknown"), icon.pid, null, null, icon);
+        let source = this._getSource(icon.title || icon.wm_class || C_("program", "Unknown"), icon.pid, null, null, icon);
     },
 
     _onTrayIconRemoved: function(o, icon) {
index 84f6b2da7743ec9f435e692a0964b1fa98a3b5c8..978d009b959f97112df919f1543fc5db5e4d5205 100644 (file)
@@ -212,7 +212,7 @@ const DeviceItem = new Lang.Class({
         case UPDeviceType.COMPUTER:
             return _("Computer");
         default:
-            return _("Unknown");
+            return C_("device", "Unknown");
         }
     }
 });
index 31756a3293bfdf0b67e898266a3a86a1e22c1229..d452fd3034a6daed700631da7ca38803fada811e 100644 (file)
@@ -371,7 +371,7 @@ shell_app_get_name (ShellApp *app)
 
       name = meta_window_get_wm_class (window);
       if (!name)
-        name = _("Unknown");
+        name = C_("program", "Unknown");
       return name;
     }
 }